

body{
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}
.imgs{
    width: 600px;
    height: 600px;
    display: flex;
    flex-wrap: wrap;
    cursor: pointer;
    .img-item{
        box-shadow: inset 0 0 0 1px #fff;
        transition: 0.3s;
        width: 200px;
        height: 200px;
        background-size: 1080px 1080px;
        background-image: url(../imgs/test1.jpg);
        background-position: (var(--bgx,0) var(--bgy,0));
        transform: translate(var(--disx,0),var(--disy,0));
    }
    &:hover{
        img-item{
            transform: translate(0,0);
            box-shadow: inset 0 0 0 0px #fff;
        }
    }
}